#!/bin/bash

if [ "$1" = "off" ]; then
    defaults write com.apple.dashboard mcx-disabled -boolean YES && killall Dock
elif [ "$1" = "on" ]; then
    defaults write com.apple.dashboard mcx-disabled -boolean NO && killall Dock
fi
